package com.qf.erp_system_admin.service.impl;

import com.qf.erp_system_admin.entity.Client;
import com.qf.erp_system_admin.entity.Supplier;
import com.qf.erp_system_admin.mapper.SupplierMapper;
import com.qf.erp_system_admin.service.SupplierService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

@Service
public class SupplierServiceImpl implements SupplierService {
    @Autowired
    private SupplierMapper supplierMapper;

    @Override
    public List<Supplier> findAll(HashMap<String, String> map) {
        return supplierMapper.findAll(map);
    }

    @Override
    public boolean del(int supId) {
        return supplierMapper.del(supId);
    }

    @Override
    public boolean delBatch(List<Integer> ids) {
        return supplierMapper.delBatch(ids);
    }

    @Override
    public boolean add(Supplier supplier) {
        return supplierMapper.add(supplier);
    }

    @Override
    public boolean up(Supplier supplier ) {
        return supplierMapper.up(supplier);
    }

    @Override
    public List<Supplier> findAll1(Object o) {
        return supplierMapper.findAll1(null);
    }

    @Override
    public void saveBatch(ArrayList<Supplier> list) {
        supplierMapper.saveBatch(list);
    }


}
